package com.itheima.d4_synchronized_method;

public class ThreadTest1 {
    public static void main(String[] args) {
        //1.创建账户对象
        Account acc = new Account("ICBC-110",10000);
        //2.创建两个线程
        new DrawThread(acc,"小明").start();//小明
        new DrawThread(acc,"小红").start();//小红

        Account acc1 = new Account("ICBC-112",10000);
        //2.创建两个线程
        new DrawThread(acc1,"小黑").start();//小明
        new DrawThread(acc1,"小白").start();//小红
    }
}
